package com.b1.service;

import com.b1.pojo.dto.childernSleepRecord.ChildernSleepQueryRequest;
import com.b1.pojo.enity.ChildernSleepRecord;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.IService;

import java.io.IOException;
import java.util.List;

/**
* @author ThinkBook
* @description 针对表【childern_sleep_record(这是用来管理每个班级儿童的午睡情况的记录表)】的数据库操作Service
* @createDate 2024-10-09 15:44:24
*/
public interface ChildernSleepRecordService extends IService<ChildernSleepRecord> {

    /**
     * 验证儿童午睡记录
     * @param childernSleepRecord
     * @param b
     */
    void validChildernSleepRecord(ChildernSleepRecord childernSleepRecord, boolean b);


    QueryWrapper<ChildernSleepRecord> getQueryWrapper(ChildernSleepQueryRequest childernSleepQueryRequest);
    /**
     * 导出儿童午睡记录
     * @param ids
     * @return
     */
    String export(Long[] ids) throws IOException;

    /**
     * 批量修改儿童午睡记录
     * @param childernSleepRecords
     * @return
     */
    Boolean updateBatch(List<ChildernSleepRecord> childernSleepRecords);
}
